package com.jiezuo.auth.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiezuo.auth.entity.Enterprise;

import java.util.List;

/**
* @description   企业管理
* @author        庞留杰
* @date          2020/08/26 14:37
* @version       V1.0
**/
public interface EnterpriseService extends IService<Enterprise>  {

    IPage<Enterprise> findPage(Page page, Enterprise enterprise);

    List<Enterprise> findList(Enterprise enterprise);

    Enterprise findById(String id);

    List<Enterprise> enterpriseTree(Enterprise enterprise);

    JSONArray enterpriseDepartTree();

}
